<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>__NAMEYY__预约管理系统</title>
<link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/css/metisMenu.css" rel="stylesheet">
<link href="__PUBLIC__/css/sb-admin.css" rel="stylesheet">
<link href="__PUBLIC__/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/js/datepicker/css/jquery.ui.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="__PUBLIC__/js/html5shiv.js"></script>
<script src="__PUBLIC__/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
var downpwd_ajax="{:U('Index/downpwd_ajax')}";
</script>

</head>

<body>
<div id="wrapper"> <include file="Public:left" />
  <div id="page-wrapper">
   <include file="Public:position" />
    <div class="container-fluid">
  
      <form class="form-horizontal" role="form" onSubmit="return yzdownpwd();" name="yzdownpwdfrom" method="post">
      <div class="row">
        <div class="col-md-11">
          <div class="form-group">
            <label class="col-md-1 control-label" for="yuyue">预约号：</label>
            <div class="input-text col-md-2">
              <input type="text" class="form-control input-sm" id="yuyue" name="yuyue">
            </div>
            <label class="col-md-1 control-label" for="username">姓名：</label>
            <div class="input-text col-md-2">
              <input type="text" class="form-control input-sm" id="username" name="username">
            </div>
            <label class="col-md-1 control-label" for="type_in_strat">录入开始：</label>
            <div class="input-text col-md-2">
              <input type="text" class="form-control input-sm" id="type_in_strat"  name="type_in_strat">
            </div>
            <label class="col-md-1 control-label" for="type_in_end">录入结束：</label>
            <div class="input-text col-md-2">
              <input type="text" class="form-control input-sm" id="type_in_end"  name="type_in_end">
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-1 control-label" for="zxylist">查看：</label>
            <div class="input-text col-md-2">
              <select name="zxylist" id="zxylist" class="form-control input-sm">
                <option value="0">--请选择--</option>
                <volist name="zxylist" id="data">
                  <option value="{$data.id}">{$data.name}</option>
                </volist>
              </select>
            </div>
            <label class="col-md-1 control-label" for="phone">电话：</label>
            <div class="input-text col-md-2">
              <input type="text" class="form-control input-sm" id="phone" name="phone">
            </div>
            <label class="col-md-1 control-label" for="yuyue_strat">预约开始：</label>
            <div class="input-text col-md-2">
              <input type="text" class="form-control input-sm" id="yuyue_strat"  name="yuyue_strat">
            </div>
            <label class="col-md-1 control-label" for="yuyue_end">预约结束：</label>
            <div class="input-text col-md-2">
              <input type="text" class="form-control input-sm" id="yuyue_end"  name="yuyue_end">
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-1 control-label" for="laiyuan">来院：</label>
            <div class="input-text col-md-2">
              <select name="laiyuan" id="laiyuan" class="form-control input-sm">
                <option value="-请选择-">-请选择-</option>
                <option value="是">是</option>
                <option value="否">否</option>
              </select>
            </div>
            <label class="col-md-1 control-label" for="qq">QQ：</label>
            <div class="input-text col-md-2">
              <input type="text" class="form-control input-sm" id="qq" name="qq">
            </div>
            <label class="col-md-1 control-label" for="laiyuan_strat">来院开始：</label>
            <div class="input-text col-md-2">
              <input type="text" class="form-control input-sm" id="laiyuan_strat" name="laiyuan_strat">
            </div>
            <label class="col-md-1 control-label" for="laiyuan_end">来院结束：</label>
            <div class="input-text col-md-2">
              <input type="text" class="form-control input-sm" id="laiyuan_end" name="laiyuan_end">
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-1 control-label" for="huifang">回访类别：</label>
            <div class="input-text col-md-2">
              <select name="huifang" id="huifang"  class="form-control input-sm">
                <option value="0">--请选择--</option>
                <volist name="huifanglist" id="data">
                  <option value="{$data.id}">{$data.callback_name}</option>
                </volist>
              </select>
            </div>
            <label class="col-md-1 control-label" for="keshi">科室：</label>
            <div class="input-text col-md-2">
              <select name="keshi" id="keshi" class="form-control input-sm">
                <option value="0">--请选择--</option>
                <volist name="keshilist" id="data">
                  <option value="{$data.id}">{$data.section_name}</option>
                </volist>
              </select>
            </div>
              <label class="col-md-1 control-label" for="isorder">预约情况：</label>
              <div class="input-text col-md-2">
                <select name="isorder" id="isorder" class="form-control input-sm">
                  <option value="9999">--请选择--</option>
                  <option value="1">预约</option>
                  <option value="0">登记</option>
                </select>
              </div>
            
            
            
            <div class="input-text col-md-3" style="text-align:center;">
            <input type="text" class="form-control input-sm" style="width:90px; float:left; margin-right:5px; margin-left:33%;"  placeholder="输入密码" id="downpwd" name="downpwd"><button type="submit" class="btn btn-primary btn-sm"  id="search_btns" style=" float:left;">导出报表</button>
            </div>
          </div>
        </div>
      </div>
      <p class="text-center" style="border-top:1px solid #ccc;"><a href="javascript:;" data-toggle="collapse" data-target="#duoxuan"><i class="fa fa-angle-double-down fa-lg"></i></a> </p>
      <div class="row choicemultiple collapse" id="duoxuan">
        <div class="col-md-11">
          <div class="form-group">
            <label class="col-md-1 control-label">地区：</label>
            <div class="input-text col-md-1">
              <select multiple="multiple" class="form-control" id="selectLocation" name="selectLocation">
                <volist name="arealist" id="data">
                  <option value="{$data.id}">{$data.area_name}</option>
                </volist>
              </select>
            </div>
            <div class="input-text col-md-1">
              <select multiple="multiple" class="form-control" id="selectLocation_1" name="selectLocation_1[]">
              </select>
            </div>
            <label class="col-md-1 control-label">信息渠道：</label>
            <div class="input-text col-md-1">
              <select multiple="multiple" class="form-control" id="selectInformationChannel" name="selectInformationChannel">
                <volist name="qudaoinfolist" id="data">
                  <option value="{$data.id}">{$data.info_name}</option>
                </volist>
              </select>
            </div>
            <div class="input-text col-md-1">
              <select multiple="multiple" class="form-control" id="selectInformationChannel_1" name="selectInformationChannel_1[]">
              </select>
            </div>
            <label class="col-md-1 control-label">渠  道：</label>
            <div class="input-text col-md-1">
              <select multiple="multiple" class="form-control" id="selectConsultMethod" name="selectConsultMethod">
                <volist name="consultlist" id="data">
                  <option value="{$data.id}">{$data.consult_name}</option>
                </volist>
              </select>
            </div>
            <div class="input-text col-md-1">
              <select multiple="multiple" class="form-control" id="selectConsultMethod_1" name="selectConsultMethod_1[]">
              </select>
            </div>
            <label class="col-md-1 control-label">营  销：</label>
            <div class="input-text col-md-1">
              <select multiple="multiple" class="form-control" id="selectMarketingMethod" name="selectMarketingMethod">
                <volist name="yingxiaolist" id="data">
                  <option value="{$data.id}">{$data.yingxiao_name}</option>
                </volist>
              </select>
            </div>
            <div class="input-text col-md-1">
              <select multiple="multiple" class="form-control" id="selectMarketingMethod_1" name="selectMarketingMethod_1[]">
              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-1 control-label">来源网站：</label>
            <div class="input-text col-md-1">
              <select multiple="multiple" class="form-control" id="selectWebSite" name="selectWebSite">
                <volist name="weblist" id="data">
                  <option value="{$data.id}">{$data.web_name}</option>
                </volist>
              </select>
            </div>
            <div class="input-text col-md-1">
              <select multiple="multiple" class="form-control" id="selectWebSite_1" name="selectWebSite_1[]">
              </select>
            </div>
          </div>
        </div>
      </div>
      </form>
    </div>
  </div>
</div>
<script src="__PUBLIC__/js/jquery.js"></script> 
<script src="__PUBLIC__/js/bootstrap.js"></script> 
<script src="__PUBLIC__/js/metisMenu.js"></script> 
<script src="__PUBLIC__/js/sb-admin-2.js"></script> 
<script src="__PUBLIC__/js/datepicker/js/jquery.datepicker.js"></script> 
<script src="__PUBLIC__/js/sectionajax.js"></script>
<script>


function yzdownpwd()
{
	 var downcode=yzdownpwdfrom.downpwd.value;
     var ajaxFlag=true;

	if(downcode=="")
	{
		alert("密码不能为空!");
		yzdownpwdfrom.downpwd.focus();
		return false;
	}	
	$.ajax({
        type: 'POST',
        url: downpwd_ajax,
        async:false, 
        cache:false, 
        data: {'downcode':downcode},
        dataType: 'json',
        success: function(json) {
          if (json.state!= 1) {
            alert('下载密码错误！');
           yzdownpwdfrom.downpwd.focus();
		   ajaxFlag=false;  
          }
        }
      });
	
    
     if(!ajaxFlag){  
        return false;  
    }  
}

$(function(){
$("#type_in_strat,#type_in_end,#yuyue_strat,#yuyue_end,#laiyuan_strat,#laiyuan_end").datepicker(); 
})
</script>
</body>
</html>
